import LeftMenu from "./LeftMenu.vue";
import FormLayout from "./FormLayout.vue";
import FormTitle from "./FormTitle.vue";
import FormTab from "./FormTab.vue";
import BlueButton from "./BlueButton.vue";
import DateControl from "./DateControl.vue";
import MultiTimeSlider from "./MultiTimeSlider.vue";
import ControlButton from "./ControlButton.vue";
import UpperAir from "./UpperAir.vue";

const components = [
    LeftMenu,
    FormLayout,
    FormTitle,
    FormTab,
    BlueButton,
    DateControl,
    MultiTimeSlider,
    ControlButton,
    UpperAir
]

const install = function (Vue) {
    //所有通过这里注册的组件必须携带name属性
    components.forEach(component => {
        Vue.component(component.name, component);
    });
};

export default {
    install,
    LeftMenu,
    FormLayout,
    FormTitle,
    FormTab,
    BlueButton,
    DateControl,
    MultiTimeSlider,
    ControlButton,
    UpperAir
}